<?php

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>跳转提示</title>
<!--        <style type="text/css">
        *{ padding: 0; margin: 0; }
        body{ background: #f6f6f6; font-family: '微软雅黑'; color: #333; font-size: 18px; }
        .message{width: 1000px;height: 420px;margin:auto 0;  position: fixed; top: 24%; left: 24%;  background-color: #ffffff;  -moz-box-shadow:0px 0px 6px #858585; -webkit-box-shadow:0px 0px 6px #858585; box-shadow:0px 0px 6px #858585; }
        .head{width: 100%;height: 30px;background: rgb(222,245,194);text-align: center;padding-top: 5px;}
        .status{width: 390px; height: 420px; float: left;}
        .status img{ margin-left: 210px; margin-top: 145px;}
        .content{height: 420px;width: 610px; float: left;}
        .success,.error{font-size: 24px; line-height: 50px; height: 50px; font-weight: bold;}
        .success{color: #58ab89;}
        .error{color: #de2828;}
        .jump{text-align: center;margin-top: 20px; width: 400px; height: 50px; line-height: 50px; background-color: #58ab89; border-radius: 5px; -moz-box-shadow:0px 4px 0px #348765; -webkit-box-shadow:0px 4px 0px #348765; box-shadow:0px 4px 0px #348765;}
        .jump a{text-decoration: none; color: #ffffff; display: block; height: 50px; width: 400px;}

        </style>-->
        <link href="/public/admin/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!-- FontAwesome 4.3.0 -->
        <link href="/public/admin/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons 2.0.0 --
        <link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/css/bootstrap-select.min.css">
        <link href="/public/admin/css/ratuo.css" rel="stylesheet">
        <!-- jQuery 2.1.4 -->
        <script src="/public/admin/js/jQuery-2.1.4.min.js"></script>
        <script src="/public/admin/js/common.js"></script>
        <script src="/public/admin/js/myFormValidate.js"></script>
        <script src="/public/admin/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="/public/admin/js/plugins/layer/layer.min.js"></script><!-- 弹窗js 参考文档 http://layer.layui.com/-->
        <script src="/public/admin/js/myAjax.js"></script>
        <script src="/public/admin/js/jquery.validate.js"></script>
    </head>
    <body>
        <div class="message" style="width: 100%;">
          <!--  <div class="head"><span>提示信息</span></div>-->
            <div style="" class="status">
                <if condition="$code eq 0">
                    <script>
                        var msg = "<?php echo(strip_tags($msg));?>";
                        var time = "{$wait}000";
                        layer.msg(msg, {
                            icon: 2,
                            time: time
                        });
                    </script>

                   <!-- <img src="/public/static/Admin/images/error.png" alt=""/>-->
                    <else/>
                        <script>
                            var msg = "<?php echo(strip_tags($msg));?>";
                            var time = "{$wait}000";
                            layer.msg(msg, {
                                icon: 1,
                                time: time //2秒关闭（如果不配置，默认是3秒）
                            });
                        </script>
                    <!--<img src="/public/static/Admin/images/status.png" alt=""/>-->
                </if>
                <p class="jump" style="display: none;">
                    <a id="href" href="<?php echo($url); ?>">如果您的浏览器没有自动跳转，请点击这里...</a>
                </p>
            </div>
            <p  style="display: none;">请稍等，该页面将在 <b style="color:#de2828; " id="wait"> <?php echo($wait); ?></b> 秒后自动跳转</p>
           <!-- <div class="content">
                <div style="height: 120px;"></div>
                <?php if(isset($message)) {?>
                    <p class="success"><?php echo($message); ?></p>
                <?php }else{?>
                    <p class="error"><?php echo($error); ?></p>
                <?php }?>
                <p class="detail"></p>
                <p style="color: #666666;">请稍等，该页面将在 <b style="color:#de2828; " id="wait"> <?php echo($waitSecond); ?></b> 秒后自动跳转</p>

            </div>-->
        </div>

        <script type="text/javascript">
        (function(){
        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
            location.href = href;
            clearInterval(interval);
            };
        }, 1000);
        })();
        </script>
    </body>
    </html>